import Vue from 'vue'
import Router from 'vue-router'
import Index from "./views/Index";
import UserInfoEdit from "./views/UserEdit";
import Contribute from "@/views/Contribute";
import UserInfo from "@/views/UserInfo";
import ProjectDetail from "@/views/ProjectDetail";
import Accompany from "@/views/Accompany";
import DownloadDetail from "@/views/DownloadDetail";


Vue.use(Router);
export default new Router({
    mode: 'history',
    base: process.env.BASE_URL,
    routes: [{
        path: '/infoEdit',
        name: "edit",
        component: UserInfoEdit
    }, {
        path: '/contribute',
        name: 'contribute',
        component: Contribute
    }, {
        path: '/userinfo',
        name: 'userinfo',
        component: UserInfo
    }, {
        path: '/',
        name: 'index',
        component: Index
    }, {
        path: '/projectDetail',
        name: "projectDetail",
        component: ProjectDetail
    }, {
        path: '/beat/detail',
        name: "accompanyDetail",
        component: Accompany
    }, {
        path: '/downloadDetail',
        name: "downloadDetail",
        component: DownloadDetail
    }]
})
